package com.jianying.mapper;

import org.springframework.stereotype.Repository;

import com.jianying.base.BaseMapper;
import com.jianying.dataSource.TargetDataSource;
import com.jianying.domain.Bargain;

@Repository("bargainMapper")
public class BargainMapper extends BaseMapper {

	private static final String NAME_SPACE = "com.jianying.mapper.BargainMapper.";
	
	@TargetDataSource(name="ds1")
	public void insert(Bargain bargain){
		getSqlSessionTemplate().insert(NAME_SPACE + "insert", bargain);
	}
	
}
